package cheers.model;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 *
 * @author santiago
 */
@Entity
public class Bar implements Serializable {
    @Id
    private int id;

    @Column(length=30)
    private String name;
    
    public Bar() {
    }
    
    public Bar(int id, String name) {
        this.id = id;
        this.name = name;
    }

    // <editor-fold defaultstate="collapsed" desc=" Getters and Setters ">
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    //</editor-fold>
    
    @Override
    public String toString() {
        return name;
    }
}
